package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppGoodsClass;
import com.ruoyi.app.domain.vo.AppGoodsClassVo;
import com.ruoyi.app.domain.bo.AppGoodsClassBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * APP商城商品分类Service接口
 *
 * @author heike
 * @date 2023-02-28
 */
public interface IAppGoodsClassService {

    /**
     * 查询APP商城商品分类
     */
    AppGoodsClassVo queryById(Long id);

    /**
     * 查询APP商城商品分类列表
     */
    TableDataInfo<AppGoodsClassVo> queryPageList(AppGoodsClassBo bo, PageQuery pageQuery);

    /**
     * 查询APP商城商品分类列表
     */
    List<AppGoodsClassVo> queryList(AppGoodsClassBo bo);

    /**
     * 新增APP商城商品分类
     */
    Boolean insertByBo(AppGoodsClassBo bo);

    /**
     * 修改APP商城商品分类
     */
    Boolean updateByBo(AppGoodsClassBo bo);

    /**
     * 校验并批量删除APP商城商品分类信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
